﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Mobile.Models.ArticleViewModel>" %>
<%@ Import Namespace="SDT.Lib.Paging" %>
<%  int stt = 1;
    foreach(var item in Model.Articles){
       if (stt == 1){
            string imgPath = (item.ImagePath != null && item.ImagePath != string.Empty) ? SDT.Lib.Common.Utils.GenThumbnail(item.ID, 61, 52, item.ImagePath, Model.ImagePath, Model.ImageUrl) : Model.DefaultUrl;
 %>

        <div class="tit_img"><a href="/Article/Detail/<%=item.ID %>"><img src="<%=imgPath%>" width="61" height="52" class="border_img" /></a></div>
        <div class="tit_cnt">
            <div style="margin:0px 2px;padding:5px"><a href="/Article/Detail/<%=item.ID %>" class="l_blue"><strong>»»<%= item.Title%></strong></a> </div>
            <div style="margin:0px 2px" ><%= item.AddDate.ToString("MMM dd, yyyy")%></div>
            <div style="margin:0px 2px"><%= item.Summary%>... </div>
        </div>
        <div class="clear"></div>
   <% }else {%> 
        <div class="kcate">
        	<ul>
            	<li style="list-style: none outside none;"><a href="/Article/Detail/<%=item.ID %>" class="l_blue">»»<%= item.Title %> <%= item.AddDate %></a></li>
            </ul>
        </div>
 <%} %>
<% stt++;
    } %>